package com.example.stmall.manager.service;

import com.example.stmall.manager.entity.Goods;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface GoodsService {
    /**
     * 增
     */
    int add(Goods goods) throws Exception;
    /**
     * 删
     */
    int remove(Integer id) throws Exception;
    /**
     * 改
     */
    int edit(Goods goods) throws Exception;
    /**
     * 根据ID查
     */
    Goods getById(Integer id) throws Exception;
    /**
     * 搜索
     */
    List<Goods> search(Goods goods);
    /**
     * 分页搜索
     */
    PageInfo searchByPage(Integer page, Integer limit,Goods goods);
}
